var barcode = require("./barcode");

var qrcode = require("./qrcode");

function barc(_0x5c7a71, _0x28ac1f, _0x583984, _0x5976d3, _0x2034ea, _0x3f1560) {
  barcode.code128(_0x5c7a71, _0x28ac1f, _0x583984, _0x5976d3, _0x2034ea, _0x3f1560);
}

function qrc(ctx, text, x, y, width, height, eccLevel) {
  console.log("【qrcode】1. ", qrcode, qrcode.api)
  qrcode.api.setEccLevel(eccLevel != null ? eccLevel : 2);
  console.log("【qrcode】2. ", qrcode, qrcode.api)
  qrcode.api.draw(text, {
    "ctx": ctx,
    "x": x,
    "y": y,
    "width": width,
    "height": height
  });
}

module.exports = {
  "barcode": barc,
  "qrcode": qrc
};